import { createRouter, createWebHistory, RouteRecordRaw } from "vue-router";

const routes: Array<RouteRecordRaw> = [
  {
    path: "/",
    redirect: "pdf",
    children: [
      {
        path: "sdzs",
        component: () => import("@/views/sdzs/index.vue"),
      },
      {
        path: "pdf",
        component: () => import("@/views/pdf/index.vue"),
      },
    ],
  },
];

const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes,
});

export default router;
